package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;

/**
 * 人员/部门单选
 * 开发者: HuXiaoDan
 * 日期: 2017/1/4 10:02
 */
public class PDeptListActivity extends BasePagerActivity {
  private int[] titles = { R.string.selectPerson, R.string.searchDept };

  @Override protected Fragment createFragmentOne() {
    int from = getIntent().getIntExtra(AppointerListFragment.EXTRA_FROM, 0);
    return AppointerListFragment.newInstance(from);
  }

  @Override protected Fragment createFragmentTwo() {
    return new DeptmentListFragment();
  }

  @Override protected int[] createTitle() {
    return titles;
  }
}
